<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span class="hs-pragma">{-# LANGUAGE CPP #-}</span><span>
</span><span id="line-2"></span><span class="hs-pragma">{-# LANGUAGE NoImplicitPrelude #-}</span><span>
</span><span id="line-3"></span><span>
</span><span id="line-4"></span><span class="hs-comment">-- | Selected backend</span><span>
</span><span id="line-5"></span><span class="hs-comment">--</span><span>
</span><span id="line-6"></span><span class="hs-comment">-- We need this module in addition to GHC.Num.Backend to avoid module loops with</span><span>
</span><span id="line-7"></span><span class="hs-comment">-- Check backend.</span><span>
</span><span id="line-8"></span><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">GHC.Num.Backend.Selected</span><span>
</span><span id="line-9"></span><span>   </span><span class="hs-special">(</span><span> </span><span class="hs-keyword">module</span><span> </span><span class="annot"><span class="hs-identifier">Backend</span></span><span>
</span><span id="line-10"></span><span>   </span><span class="hs-special">)</span><span>
</span><span id="line-11"></span><span class="hs-keyword">where</span><span class="hs-cpp">

#if defined(BIGNUM_NATIVE)
</span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">GHC.Num.Backend.Native</span><span> </span><span class="hs-keyword">as</span><span> </span><span class="hs-identifier">Backend</span><span class="hs-cpp">

#elif defined(BIGNUM_FFI)
</span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">GHC.Num.Backend.FFI</span><span> </span><span class="hs-keyword">as</span><span> </span><span class="hs-identifier">Backend</span><span class="hs-cpp">

#elif defined(BIGNUM_GMP)
</span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Num.Backend.GMP.html"><span class="hs-identifier">GHC.Num.Backend.GMP</span></a></span><span> </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">Backend</span></span><span class="hs-cpp">

#else
</span><span class="hs-cpp">#error Undefined BigNum backend. Use a flag to select it (e.g. gmp, native, ffi)`
</span><span class="hs-cpp">#endif
</span></pre></body></html>